package il.ac.technion.wiki.api.search;


/**
 * Represents a simple text string search.
 */
public class TextSearchExpression implements ISearchExpression {
	@Override
	public int numberOfOperands() {
		return 0;
	}

	@Override
	public String toString() {
		return text;
	}

	/**
	 * Creates a new TextSearchExpression.
	 * @param text	The string of the search expression.
	 */
	public TextSearchExpression(String text) {
		this.text = text;
	}
	
	/**
	 * The string of the search expression.
	 */
	public final String text;
}
